home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / lists / mint / l_1199 / 1643 < prev    next >
Encoding:
Internet Message Format  |  1994-08-27  |  1.6 KB

  1. From: itschere@techfak.uni-bielefeld.de
  2. Subject: Re: bug in mintlib44's access() function
  3. Date: Mon, 20 Jun 94 12:00:26 MET DST
  4. In-Reply-To: <9406191508.AA01338@pfsparc02.phil15.uni-sb.de>; from "Benjamin Lorenz" at Jun 19, 94 05:08:27 pm
  5.  
  6. > That's ok! Here is the Sun-Manpage:
  7. >
  8. > The real user ID and the supplementary group IDs  (including
  9. > the real group ID) are used in verifying permission, so this
  10. > call is useful to set-UID programs.
  11.  
  12.  Hmm, looks like what you say is right, speaking in terms of correctness
  13. of the text in the manpage, but: If this really is the definition of this
  14. function, then it does *not* do what it name promises me! All other parts
  15. in the kernel use effective id's to determine anything. So if this function
  16. tells me I can access a file, it will be true. But the negation of that
  17. mustn't necessarily also be true: If this function tells me I'm *not*
  18. allowed to access a file, I *may* in fact perhaps be allowed to, and thus,
  19. there's no point in calling this functions in the first place. Just open
  20. the file and see if it works...
  21.  
  22.  In other terms: I was writing a set-GID program (a better `write') which
  23. wanted to check if it is allowed to write to a tty. Tty's have the 'tty'
  24. group and `write' was set to have a set-GID of 'tty', but the real one is
  25. your one, and with *this* gid it is *never* allowed to write to a terminal,
  26. according to access().
  27.  
  28.  So where's the point of this function?
  29.  
  30. ciao,
  31. TeSche
  32. -- 
  33. Torsten Scherer (Schiller, TeSche...)
  34. Faculty of Technology, University of Bielefeld, Germany, Europe, Earth...
  35. | Use any of "finger itschere@129.70.131                |
  36. | Last updated: 14. April 1994                        |
  37.